﻿<%@ Page Language="C#" MasterPageFile="~/Manager/Manager.Master" AutoEventWireup="true" CodeBehind="ManBannerCat.aspx.cs" Inherits="BatDongSan.Manager.ManBannerCat" Theme="cvkadmin"%>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphBody" runat="server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <div>
                <div style="float: left">
                </div>
                <div style="padding: 0px 10px 0px 0px;" align="right">
                    <asp:Label ID="lbStatus" runat="server" Font-Italic="True" ForeColor="#FF3300"></asp:Label>
                    <asp:LinkButton ID="lnkbtNewsUpdate" CssClass="linkbutton" Font-Size="Larger" PostBackUrl="~/Manager/ManBannerCatUpdate.aspx"
                        runat="server">Thêm mới (Vị trí)</asp:LinkButton>
                </div>
            </div>
            <br />
            <div style="float: none">
                <asp:GridView ID="grvCat" runat="server" AutoGenerateColumns="False" CssClass="TMain"
                    BorderStyle="Solid" BorderWidth="1px" CellPadding="4" GridLines="Vertical" Width="100%"
                    OnRowDataBound="grvCat_RowDataBound">
                    <RowStyle CssClass="TItem" />
                    <Columns>
                        <asp:TemplateField HeaderText="STT">
                            <ItemTemplate>
                                <asp:Label ID="lblSTT" runat="server" Text='<%# Container.DataItemIndex+1 %>'></asp:Label>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Center" Width="10px" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="NewsId" InsertVisible="False" Visible="false">
                            <ItemTemplate>
                                <asp:Label ID="lblNewsId" runat="server" Text='<%# Eval("CategoryId") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Vị trí">
                            <ItemTemplate>
                                <img src="/App_Themes/cvkadmin/images/news.jpg" /><asp:HyperLink ID="hplName" ToolTip="Click vào đây để Edit mẩu tin này" Font-Underline="false" runat="server" Text='<%# Eval("Name") + " (" + Eval("Description") + ")" %>'></asp:HyperLink>
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Left" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Người gửi">
                            <ItemTemplate>
                                <img src="/App_Themes/cvkadmin/images/username.gif" /><%# Eval("PostUser") %>
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Left" />
                            <ItemStyle Width="95px" VerticalAlign="Top" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Gửi lúc">
                            <ItemTemplate>
                                <img src="/App_Themes/cvkadmin/images/postdate.gif" height="12" /><%# Eval("CreateDate")%>
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Left" />
                            <ItemStyle Width="135px" Font-Size="10" VerticalAlign="Top"/>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="#Ẩn" Visible="true">
                            <ItemTemplate>
                                <asp:LinkButton ID="lnkbtActive" Font-Bold="true" Font-Underline="false" runat="server"
                                    CausesValidation="False" OnClick="lnkbtActive_Click"></asp:LinkButton>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Top" Width="30px" />
                        </asp:TemplateField>
                        <asp:TemplateField ShowHeader="False" HeaderText="#Thêm">
                            <ItemTemplate>
                                <asp:LinkButton ID="lnkbtAdd" runat="server" CausesValidation="False" Text="Add"></asp:LinkButton>
                                <asp:LinkButton ID="lnkbtView" runat="server" CausesValidation="False" Text="View"></asp:LinkButton>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Top" Width="70px" />
                        </asp:TemplateField>
                        <asp:TemplateField ShowHeader="False" HeaderText="Xóa">
                            <ItemTemplate>
                                <asp:LinkButton ID="lnkbtDelete" runat="server" CausesValidation="False" Text="Xóa"
                                    OnClick="lnkbtDelete_Click"></asp:LinkButton>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Top" Width="30px" />
                        </asp:TemplateField>
                    </Columns>
                    <FooterStyle CssClass="TFooter" />
                    <PagerStyle CssClass="TFooter" HorizontalAlign="Right" />
                    <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle CssClass="THeader" />
                    <AlternatingRowStyle CssClass="TItemA" />
                </asp:GridView>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
